/**
 * Created by LeonTao on 17/2/14.
 */
//通知
function generateNotify(title, message, type, delay) {
    delay = (typeof delay !== 'undefined') ?  delay : 3000;
    $.notify({
        // options
        icon: 'glyphicon glyphicon-warning-sign',
        title: title,
        message: message,
        // url: '',
        target: '_blank'
    }, {
        // settings
        element: 'body',
        position: null,
        type: type,
        allow_dismiss: true,
        newest_on_top: true,
        showProgressbar: false,
        placement: {
            from: "top",
            align: "center"
        },
        offset: 20,
        spacing: 10,
        z_index: 1031,
        delay: delay,
        timer: 1000,
        url_target: '_blank',
        mouse_over: null,
        animate: {
            enter: 'animated bounceIn',
            exit: 'animated bounceOut'
        },
        onShow: null,
        onShown: null,
        onClose: null,
        onClosed: null,
        icon_type: 'class'

    });
}